package com.zb;

import lombok.Data;
import java.util.concurrent.RejectedExecutionHandler;

@Data
public class ThreadPoolConfig {
    /**
     * 线程池名称
     */
    private String threadPoolName;
    /**
     * 核心线程数
     */
    private int coreSize;
    /**
     * 最大线程数
     */
    private int maxSize;
    /**
     * 队列容量
     */
    private int queueCapacity;
    /**
     * 线程空闲时间
     */
    private int keepAliveSeconds = 60;
    /**
     * 线程前缀名称
     */
    private String threadNamePrefix = "customerThreadPool";
    /**
     * 拒绝策略
     */
    private RejectedExecutionHandler rejectedPolicy;
}